FROM alpine:edge

ADD ./Dockerfile /Dockerfile

RUN echo "https://mirrors.tuna.tsinghua.edu.cn/alpine/edge/main" > /etc/apk/repositories
RUN echo "https://mirrors.tuna.tsinghua.edu.cn/alpine/edge/community" >> /etc/apk/repositories

RUN apk add --no-cache curl bash libc6-compat
# filebeat运行时所需要的包
RUN apk add --no-cache filebeat

WORKDIR /app
